<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_REQUEST["calender_id"])
{
	$calender_id = strip_tags($_REQUEST["calender_id"]);
    $milestone_date = strip_tags($_REQUEST["milestone_date"]);
	$alert_action_id = strip_tags($_REQUEST["alert_action_id"]);
	$alert_period = strip_tags($_REQUEST["alert_period"]);
	$cal_item = strip_tags($_REQUEST["cal_item"]);
	$modified = date("Y-m-d H:m:s");
	
	$q = Doctrine_Query::create();

	$rows = $q->update('AgentCalender')
          ->set('milestone_date', $milestone_date,
          		'alert_action_id', $alert_action_id,
          		'alert_period', $alert_period,
          		'cal_item', $cal_item,
          		'modified', $modified )
          ->where('calender_id ='.$calender_id)
          ->execute();
	
}
	
?>